package com.wn.aop2;

import org.aspectj.lang.ProceedingJoinPoint;

public class LogAroundAdvice {
    public Object aroundAdviceMethod(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        Object result = null;
        try {
            System.out.println("执行业务之前的操作。。。。。日志");

            result = proceedingJoinPoint.proceed();

            System.out.println("执行业务之后的操作。。。。。日志");

            return  result;
        }catch (Throwable e){
            System.out.println("执行业务时出现异常。。。。。日志");
            throw e;
        }
    }
}
